<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Product extends CI_Controller {

	function index()
	{	
		$this->lang->load('product', $this->config->item('language'));

		$this->load->model('home_model');
		$data['produits'] = $this->home_model->list_produits();
			     
	    // on charge la view qui contient le corps de la page
	    $data['content'] = 'product';
	 
	    // on charge la page dans le template
	    $this->load->view('template/head', $data);
	    $this->load->view('template/template', $data);
	    $this->load->view('template/footer', $data);
	}
}

/* End of file home.php */
/* Location: ./application/controllers/welcome.php */